package rpc.simple.impl.tag1.provider;

import rpc.simple.impl.service.HelloService;
import rpc.simple.impl.service.HelloServiceImpl;
import rpc.simple.impl.tag1.SimpleRpcFramework;

/**
 * XXX
 *
 * @author mengzhang6
 * @date 2019/1/3 9:14
 */
public class RpcProvider {

    /**
     * 暴露服务
     *
     * @param args
     * @throws Exception
     */
    public static void main(String[] args) throws Exception {
        HelloService service = new HelloServiceImpl();
        SimpleRpcFramework.export(service, 1234);
    }
}
